package com.luoxiang.socialandroid.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.luoxiang.lib_common.utils.MmkvUtil;
import com.luoxiang.socialandroid.R;
import com.luoxiang.socialandroid.base.BaseActivity;
import com.luoxiang.socialandroid.utils.CustomClickListener;

public class ChangePhoneActivity extends BaseActivity {
    private TextView textView7;
    private ImageView icon_back;
    private TextView button3;
    private String phone;

    @Override
    protected void initListener() {
        icon_back.setOnClickListener(new CustomClickListener() {
            @Override
            protected void onSingleClick() {
                finish();
            }

            @Override
            protected void onFastClick() {

            }
        });
        button3.setOnClickListener(new CustomClickListener() {
            @Override
            protected void onSingleClick() {
                Intent intent = new Intent(ChangePhoneActivity.this, PhoneChangeActivity.class);
                intent.putExtra("phonenumber", phone);
                startActivity(intent);
                finish();
            }

            @Override
            protected void onFastClick() {

            }
        });
    }

    @Override
    protected void initLayout(Bundle savedInstanceState) {
        setContentView(R.layout.activity_change_phone);
        setStatusBarTranslucent();
    }

    @Override
    protected void initView() {
        textView7 = findViewById(R.id.textView7);
        icon_back = findViewById(R.id.icon_back);
        button3 = findViewById(R.id.button3);
        phone = MmkvUtil.INSTANCE.decodeString("phone");
        textView7.setText(getString(R.string.mi_nindangqiandeshoujihao) + phone);
    }
}